package com.small.auth.service;

import com.small.auth.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 服务类
 *
 * @author wangguochao
 * @since 2020-01-06
 */
@FeignClient(value = "small-service-account")
public interface IAuUserService {


    /**
     * 用户登录查询
     *
     * @param userName 用户账号
     * @return 用户信息
     */
    @GetMapping(value = "/small-service-account/au-user/get-user-by-name")
    User getUserByName(@RequestParam String userName);


}
